package com.shangxian.giveithome.code;

public enum AttentionCode implements Code {

    UPLOAD_ERROR(false, 28001, "你已关注该用户");

    private boolean success;

    private Integer code;

    private String message;

    AttentionCode(boolean success, Integer code, String message) {
        this.success = success;
        this.code = code;
        this.message = message;
    }

    @Override
    public boolean success() {
        return this.success;
    }

    @Override
    public int code() {
        return this.code;
    }

    @Override
    public String message() {
        return this.message;
    }
}
